interface Person{
    name:string;
    age:number;
}

let p:Person={
    name:"赶紧放假吧",
    age:19
}

// console.log(p.name);


interface Item{
    name:string,
    age:number,
    price:number,
    id?:number,
    [propName:string]:any
}
let arr:Item[]=[{
    name:"马上就放假了",
    age:10,
    price:100,
    aa:111
}]
console.log(arr[0]["name"]);


interface Arrkey{
    [index:number]:string|number
}

let arr1:Arrkey=["1",2]
console.log(arr1);

